package com.zjm.structural.facade;

/**
 * 外观模式演示
 */
public class Client {
    public static void main(String[] args) throws InterruptedException {
        HomeTheaterFacade homeTheaterFacade = new HomeTheaterFacade();
        homeTheaterFacade.ready();
        homeTheaterFacade.play();
        System.out.println("-".repeat(100));
        Thread.sleep(3000);
        homeTheaterFacade.pause();
        homeTheaterFacade.end();
    }
}
